#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>

int main()
{
	int n, m;
	scanf("%d %d", &n, &m);
	int data[1000][1000] = { 0 };
	for (int i = 0; i < n; i++)
	{
		for (int j = 0; j < m; j++)
		{
			getchar(data[i][j]);
		}
		getchar();
	}
	printf("\n");

	for (int i = 0; i < n; i++)
	{
		for (int j = 0; j < m; j++)
		{
			printf("%d", data[i][j]);
		}
		printf("\n");
	}
	return 0;
}